package com.jmx.service.Impl;

import com.jmx.mapper.UserMapper;
import com.jmx.pojo.User;
import com.jmx.service.IUserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements IUserService {
    @Autowired(required = false)
    private UserMapper userMapper;

    public List<User> queryUsers(){
        return userMapper.queryUsers();
    }
    public User queryUserByName( String userName){
        return userMapper.queryUserByName(userName);
    }
}
